home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 4
/
Apprentice-Release4.iso
/
Languages
/
Caml Light 0.7
/
Caml Light 0.7 source
/
src
/
lib
/
exc.mli
< prev
next >
Wrap
Text File
|
1995-06-01
|
1KB
|
30 lines
(* Exceptions *)
value raise : exn -> 'a = 1 "raise";;
(* Raise the given exception value. *)
(*** A few general-purpose predefined exceptions. *)
exception Out_of_memory;;
(* Raised by the garbage collector, when there is insufficient
memory to complete the computation. *)
exception Invalid_argument of string;;
(* Raised by library functions to signal that the given
arguments do not make sense. *)
exception Failure of string;;
(* Raised by library functions to signal that they are
undefined on the given arguments. *)
exception Not_found;;
(* Raised by search functions when the desired object
could not be found. *)
exception Exit;;
(* This exception is not raised by any library function. It is
provided for use in your programs. *)
value failwith : string -> 'a;;
(* Raise exception [Failure] with the given string. *)
value invalid_arg : string -> 'a;;
(* Raise exception [Invalid_argument] with the given string. *)